Fixed collision detection with AI paddle and ball bouncing off walls