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

i don't see you're code freezing. i see prints regardless of the button state