finish program assignment 1 : Percolation.