changed the iteration so two stocks will not be together and fixed the filename check in trainer