Structures now get resources from their stockpile before they purchase it
Assigning countries based on distance from capital

Wasted over an hour trying some other approach, which was interesting,
but produced fairly similar results.

I don't have time to care currently.
Rip out that country stuff which wasted my time