hangman.js bug fixes