Made a training function.

Takes inputs, outputs, and the network. Finds the winning node,
then updates the weights to be closer to the inputs and outputs.