added a callback to floodfill

Added a callback to floodfill so that I could animate the floodfill and keep track of distance from the source.