How to reset my directions

Sure, I’d love some help! Here’s what I used to make the array:




So as you can see, going from up to down: I have data assets regarding which direction any neighboring tiles will take you, reading how far they are and whether or not you can travel to them. When I press a button that says, Reset Map, I delete everything and clear the entire thing before creating a new one based on the value of the Width and Height components and attaching them to one another while binding them to Location, Rotation, and Scale Rules of Keeping World.

I also have 2 assets to fit into this grid as of right now: a floor that you can traverse on and a wall that blocks your way.