Replaces neural network with a rewrite.  NeuralNetworkTest only passes some of the time; I suspect sometimes it gets caught in local minima.