Moved distance between points method to stop class