bucketFill

simplified bucketFill code