exercise monitor state machine