Territory.cs work, mostly