Max Kohl guessing game

The only spec I haven't fully completed yet is outputting an error and not using up a guess. Right now it will successfully check if the number is out of the (1..10) range, but I can't get the guess counter loop to run all the way through. This error only happens when an out-of-range number is guessed; if a number within the (1..10) range is entered, the program runs perfectly (at least, to my knowledge so far!)
The way this is structured, we will only check the first time to see if 'guess' is between 1 and 10. Try putting this test inside the loop instead.