add kernel code in AgentContainer.performMove(), line 626