Dynamic Weight Adjusting Deep Q-Networks for Real-Time Environmental Adaptation