Active Exploration in Dynamic Environments