working on negamax