fixing negamax