Function isAiPlanChange