A better way to use momentary switches is to wire them to ground and use the internal pullup resistor (pinMode(pin INPUT_PULLUP);). My stated change tutorial shows how to do state change with active low (wired to ground) switches.
Read the forum guidelines to see how to properly post code.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.
