Every female animal in heat shall be confined in a building or other enclosure in such a manner that such female animal cannot come into contact with another animal except for planned breeding and to prevent becoming a public nuisance.