Yeah, gotta be careful with that reference registry.
Yep, all you need to do is add states (items) to your enum and add cases in the case structure to handle them. Just make sure to add a condition to move to the new state.
Also, check out
FRCmastery (
lvmastery.com too), they have a state machine video tutorial over there.