negamax buggy fix