renamed Environment in Algorithms AND produceStochasticTransition