Refactoring code
Merge branch 'master' of https://github.com/connorclockwise/DreamStateMachine