Create statesmanager.cpp