https://devfolio.co/projects/enhanced-map-modelling-for-pathfinding