Added settings state. Fixed switching states in StateManager's stack