change machine from stateful to stateless in order to execute iterations of behavior and store state on object