updated Player entity with animation code