Wrote initial negamax (read copied from jump61 implementation)