It's actually **this** line that does "check if switch was pressed"