Collecting boxes on treasure hunt