In the if structure, you check for a HIGH to see if the button pressed. If you change the switch wiring to an active low (LOW when pressed), you also need to change the if to look for a LOW when the switch pressed.
In the if structure, you check for a HIGH to see if the button pressed. If you change the switch wiring to an active low (LOW when pressed), you also need to change the if to look for a LOW when the switch pressed.