import pickle


def save_merged_files(memory, iteration, timestamp):
    """Save training data to disk as a Pickle file."""
    filename = 'data/training_data/Checkers_Data' + str(iteration) + '_' \
        + timestamp + '.pkl'
    with open(filename, 'wb') as file:
        pickle.dump(memory, file)
    return filename