def find_light_arrows(spoiler): search = Search([world.state for world in spoiler.worlds]) for location in search.iter_reachable_locations( search.progression_locations()): search.collect(location.item) maybe_set_light_arrows(location)