Attempt at a routine to eliminate invisible blocks, not there yet