FloodFill uses stack instead of pure recursion