Fixing the issue with running into the bottom right corner and bouncing back too far