alpha-beta pruning works