Detect if the player won the game.