Added function to split input into an array

This will make it easier to process the input through an artificial
neural network in the future.