Completely removed global variables from FSM!

Oh boy! (I think)