The rise of factions in AI-driven simulations