added changes to singleplayer.php