Added ball position correction when a ball hits a wall