added loop for printing guesses