猫fsm machine