Tilling pattern

Hi
I‘m doing some tilling pattern however the algorithms that l made has some parts missing on the edge. How should I fixing them.

Thank you.

chain tile1.gh (45.5 KB)