Update ArtificialNeuralNetwork.scala

Changed "X = X + 1" to "X += 1".