the owner of the pit must give compensation; he must pay money to its owner, but the dead animal will become his.