Added function to evaluate if valid inputs are previously guessed or in the word