GameplayKit: State Machine for non-game Apps