Improved code

Need to spend more time on the distance algorithm, currently it
initializes the distance to 0.0, which means there in the catchment area
of being  'in-possession'