Gave states access to their StateManager through member variable sm