working alpha beta pruning