flesh out floodfill method