Trying to use a buzzer, tone and noTone freeze my program

it's not an else, it's an else if