Made the state machine work quite well - pending one issue - states must have unique starting gestures to be accessed. Will fix this next