added animation code into critter classes