move StateHistory to Logicpackage