Refactor, StateHandler&Parser bug fix

-Removed Initialize class as it was redundant.
-Fix bug where effects of action were not being properly applied to
state.
-Fixing parsing issues.