Constantly check the status to see what the dog needs. If the health meter hits zero, you lose the game Still working on it!
Thanks to Lilac250 for the original project Virtual Pet Dog.