A hangman game with an optional AI