Looking for some state machine design advice

you might benefit from studying state machines. Here is a small introduction to the topic: Yet another Finite State Machine introduction

Your next stage would be to draw the state machine

Also as you have multiple MCUs, the state machine should account for failure in data transmission so that you don’t get stuck in an intermediary stage - so a heartbeat and/or acknowledgment system is to be considered