History didn't work because it tried to access the map "initializedStates" instead of calling the method s.canBeEvaluated(StateId)