revised negamax function to work on both Human VS AI and AI VS Human modes. Disabled ai vs ai mode for now