Structural Credit Assignment In Neural Networks Using Reinforcement Learning