Imported Hangman code.