Update negamax to use do-undo