Not-thinking is for example what you just did.
Supposed-to is like how I'm supposed to hand you code.
You don't have to use switch-case in a state machine nor does state have to be limited to a single action. I'm not being much more specific than your original post which is very general, just giving you tips. Your tip-compiler seems to be turned off or powered down.
You want to find code examples, Google arduino state machine. Maybe add nick gammon to the search words, he's gifted at making explanations.