Adding valid_guess method