edited comments and added logic for the user's third guess.