Completed game logic.