changed outofbounds to illegalargument. added illegal argument for N to Percolation.java