connect the map and checkdistance