state machine for butterfly
Merge pull request #1 from Kingofhearts102/master

state machine for butterfly