added TerritoryInputListener for handling input in the TerritoryPanel