Cleaning up after the game
Fixed the caching of the territory state so the system doesn't bog down