Minimax with alpha-beta pruning