added animation handling to the horse and etc