fixed animation for the player
updated playeranimation logic