attempted brute-force solution to a shape-fitting puzzle