alpha beta pruning with ordering finished