Preparing for PA1, implemented Percolation constructor.