Refactored quiz buzzer code out from the quiz buzzer test code