Making impossible state transitions impossible (Oslo Elm Day question)

I’ll take that as advice. State machine is a simple and powerful way to model.