under working,  move state classes to subpackage, determine state package and subpackage in statemachine.java