Populate a path with square grid panels touching

I have worked out one part of definition that is already working. I made my plot to be populated with random number of panels. Is it possible to make the random panels to be attracted by a path and populate the neighboring parts of the path?path.gh (6.8 KB)

Path.3dm (103.4 KB)
path.gh (6.8 KB)

Something like this?

path_re.gh (12.2 KB)


Exactly like this! Thanks!!!