Dynamic environment in reinforcement learning