add comments to go-counting
refactor territories for readability