Changing territory neighbour storage from Set to Dict