Weights need to be updated inside the loop. Outside, it was telling the
MLP that the answer to everything is just 0, so it converged on it.