TinkerCAD switch seems to be not working (always closed)
As  Sener said, "use a pull-down resistor (10K) from pin8 to GND."



And in case anyone notices, yes, I'm aware of clear().



TinkerCAD must be assuming a floating input reads high instead of an intrinsically floating ground. The most simple solution is adding pinMode(pin8, INPUT_PULLUP); to the setup() function. Then, tie the opposite (than with a resistor) side of the switch to ground: Modified circuit TinkerCAD simulation.