finished game logic