naive percolation program