hangman game ai in java