added method alphaBetaPruning