Created Main Class for Percolation. Filled Functions.