A tic-tac-toe implementation with unbeatable AI.