Renamed a variable isAI -> isTrainingAI