Implement a complete Deep Q-Network (DQN) training step using a simple two-layer neural network as the Q-function approximator.
Your function should perform one full training iteration given:
The function must:
The network forward pass is: z1 = states @ W1 + b1, h1 = ReLU(z1), q = h1 @ W2 + b2.
Gradients should be computed with respect to the MSE loss, propagated back through only the Q-network (not the target network).