Legal fight keeps pitbull alive in shelter