Tested percolation and fixed bugs