Updated with neural network interfacing. The neural net in this build cannot train properly, so currently no meaningful training data is supplied and the training line is commented out.
BEHAVIOUR WILL BE VERY WEIRD!