added third condition at the end in case a user has guessed nothing