Added verification whether the player has won