add code & test for checkUserGuess()