Modified input generator, go tree, and trainer