Fixed StateStack, renamed State->IState, added IStateStack