Hangman game implementing basic AI for computer guessing