Functionality to create a node-graph from our grid, where each node has the coordinates of all connected surrounding nodes