Update Pet.java
Fix: Added 'default' case in switch statement to ensure all possible task values are handled. This resolves issues where tasks not explicitly listed in the cases would lead to incorrect behavior or errors in the emulator.
Solves roughly 40 emulator errors at once.