Set up the map for A* algorithm implementation.