Tic-tac-toe: optional alpha-beta pruning.