Refactored alphaBetaMinimax