fixing alpha beta pruning