comments for floodfill algorithm