A tiny bit of hardware device knowledge won't hurt.
Included here, photo shows a FLIP-FLOP bistable circle of ten inverting light sensing switches. (You have seen, elsewhere, on the FORUM.
Two gates in a circle can form a latching element, on or off, but alas...the light beam won't bend, no matter how hard I pushed, (lol). Tried moving really, really FAST, but the beam was 'gone' before I could swivel the little garden light.
No effort learning, and nothing to short out. That's how 'The Coding' should be.
Ten or twelve, is good, as even number around. It's easier to switch the FLIP-FLOP logic using a dark thick business card, blocking whichever 'state' is ON.
A tight beam flash torch or laser pointer works too, in opposite logic polarity.
Hardware stores generally charge way too much, $7 and up, each. I used local thrift 'dollar' store, got 60 of them, at buck 25 each, on a flat (boxed mass set).