hangman class corrected
test