Cognition and Multi-Agent Interaction: From Cognitive Modeling to Social Simulation