[Buildable, Dysfunctional] Logic structure formatted

Use state machine to format logic;
Use buttons with block as target to clarify structure