simulateStates function

simulateStates