One Button Two Functions bug fix

if (ButtonWasPressed) {

void button();

}

did you mean

if (ButtonWasPressed) {
button();
}

Please get rid of the ugly blank lines and use ctrl-T to auto format your code.