Convert create_factions() to use jsons