adding alpha beta pruning