Intelligent agent able to win against a human player in the game of hangman