Dropping tiles

Hi,

You probably seen the game I’m developing and the million and one questions I keep asking and get some superb answers to (thanks all :wink: ), one more question to add to my
list is best way or a way of when player digs out a brick that has water below, allow water to fall down, basically blocks of water to fall, kind of move and replace.

W
WW
BBBBB
BBBBB

Moving out a B would give:

WW
BBWB
BBBB

If you get what I mean? Is this some sort of flood fill? I did use flood fill to fill my caves with water tiles in my game.

Thanks