improved version of Hangman Game in 143