avoid duplicating stones, metals, and labors when saving pieces

for #25