Big Button - Part 14 - The State Machine

Add structured code organization with a state machine pattern