bug fixes for hangman