corrected IsGuessCorrect method