changed player to change sprite when changing direction. However cannot get walking animation to work