modify PercolationStats to parse arguments