Refactored episodeMap into the EpisodeSet
all_before flag is now handled correctly