fix alpha beta pruning