Implemented alpha beta pruning for Q3.