added code for percolation problem