renamed minimax to negamax