Changed order or operations on back propagation.

Now always change a deeper level before calculating deltas
on a shallower level. Still lots of repeated code.