Updated encyclopedia texts, fixed issue with map generation if too few factions were available, and updated the engine