fixing hangman's AI