Flood fill is an algorithm that determines the area connected to a given node in a multi-dimensional grid