cleaned up handleGuess