completed game logic