change direction of player when moving around