Program to determine if a system percolates