validateGuess function created to validate that a guess is an integer between 1 and 100.