A tic-tac-toe program with an unbeatable AI