Avatar is now being updated
Avatar is updated in TamaGUI by a timer calling getAvatar(). Within' Tamagotchi the getAvatar() returns the current avatar. The current avatar is sat whenevera state changes to the corresponding avatar of that state. The idle animation is made with the timer which changes between two avatars. Whenever a state avatar needs to be sat the timer is first stopped followed by the change to current avatar. All avatars is imported in the constructor. When avatars for other characters is available this needs to be generalised by getClass() followed by an agreed structure of the file name.

The feature has not been fully tested!
'