fleshed out brain fsm