Implemented changelistener in Tamagotchi