Add flood fill functionality