smoother movement of player