placeAnimal function adjusted