first draft of percolation assignment