fix bug in hangman