debugged and tested negamax, AI is now working