Moved game-specific code to game.c