Just about finished, think I  might need to add a caveat for residents who leave towns that are in nations, but I'll test it first.

Made separate listeners for nations and towns