add animal class and change player function