notice how you have:  if remaining_guesses > 0 statements in two places. maybe moving or making a method would be a good idea? (i would recommend moving)