Add file for Finite State Machine
MV FSM to submodule