added validation to disallow duplicate guesses