implements percolation detection with a buggy visual representation