Trying to implement BucketFill with recursion