Once pressed, the light blue block will keep moving until it hits another block. If you get to the edge of the screen, you can't undo it, so press the flag again. If you put a light blue block on top of all the switches, it will be clear. It's quite difficult.