working negamax alg

simpler, although less efficient, than the "check each case" strategy.