I was making a thing at work that was supposed to do something, but instead it did something else.

I’ve distilled the essence of it below (in JavaScript, so if you’re reading via a feedreader, you won’t see it). Pick two of the four boxes. Click the buttons until only your two boxes are visible. What’s the smallest number of clicks that will get you there from the original arrangement?

pink
blue
green
tan