exit the game when the player has won (or lost)