Fix a bug in hangman.