Implemented faster predict, which should do predictions significantly faster on the NN.
merged changes to remove excess code surrounding doEpisode call.