add state machie pattern
Merge branch 'master' of https://github.com/bluecitymoon/patterns
modify state pattern