this is an implementation of tamagotchi game