i recently asked a question on how to code my statemachine in a clean way. normally i code for PLC`s so im no expert in java. i got an helpfull answer to model the states as