Refactored pet code into petManager.js. Added capability for multiple pets.