Move multiplayer and singleplayer functions to main.c