Fixed the distance and movement functions for LatLon