Add team4 code for tamagotchi

Team 4's contribution