To remove the blocks that keep the divers from reaching the surface, you just have to click or tap on a group of at least three blocks of the same colour.