Refactored computer AI to use negamax