corrected Percolation.java