Implemented AlphaBeta pruning.