added negamax pseudocode