fixed the hangman bug