code to grid position

I guess just writing about it, it makes it clear you will have to add empty nodes for padding so that linear lookup of each layers list will still work. … or keeping offsets but that does not sound right.