Small fix in the sleep()-method in Tamagotchi

Moved declaration outside if-statement. It now tells you, when he is not
tired anymore.