Improved the animation when against a wall