ASSIGNMENT: percolation assignment first implementation.