Wrote Minimax with alpha-beta pruning for AI logic instead of simple next-move lookahead, as my original method was vulnerable to trickery.