Added functions that calculate distances from recreation centers to objects(