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