finished negamax, but needs a lot of refactoring