restructured index.php and added singleplayer.php