back->bg
floodfill: factored out needsfill function
floodfill: fillone -> fillrow, with small internal cleanups
floodfill: replaced the explicit stack with recursion