Created functions isValidGuess, evalGuess