checkTransitions in statemachine constructor removed