This is a useful method since both "metal" and "wood" can be assigned to multiple cubes within the shape JSON.