I know it is possible to use flood fill to calculate how many closed rooms are present in a matrix (or other way t represent a 2D space), but how can I calculate the