Found a bug, when overlapping shades are walked into they both claim the firs block type. It also stops you from finishing the level when the green tiles hide the targets (x).
I'm running into the same thing too on this level, where if yellow and green are the same type, even if the green tiles cover the X's the flag doesn't unfurl. EDIT: Oh I see elsewhere you say everything has to be input. Got it! o7
I was so proud of myself after finding this "toothbrush" solution. Sad it doesn't work. Thanks to ennequeue's comment I could find the "correct" solution