Four-dimensional connection strategy
Place stones on a 4D axis-neighbor graph and inspect it by slices or projection.