Button behaviour works for Button A.

The button listener will now be connected to the distributor, which will check for pauses and shutdowns.