Fixed pets.cpp

there was some duplication in the pet checker