enhance hangman algorithm to deal with divers orders of guesses