I am recreating a edge-link system from the game "Rimworld".
The purple squares are individual squares that need to form "links", in the direc