bug1: Ball Position Reset: The ball did not reset correctly after going out of bounds. The ball_rect position is now set to the center of the screen when it goes out of bounds.
bug2:Collision Handling: The code had issues with the ball not bouncing off the paddles correctly due to the ball's position not being adjusted after a collision. Adjustments were made to ensure the ball is moved outside the paddle after a collision.
bug3:Boundary Checks: The original code had incorrect boundary checks for the ball. The code now checks for the top and bottom boundaries properly.
bug1: Ball Position Reset: The ball did not reset correctly after going out of bounds. The ball_rect position is now set to the center of the screen when it goes out of bounds.
bug2:Collision Handling: The code had issues with the ball not bouncing off the paddles correctly due to the ball's position not being adjusted after a collision. Adjustments were made to ensure the ball is moved outside the paddle after a collision.
bug3:Boundary Checks: The original code had incorrect boundary checks for the ball. The code now checks for the top and bottom boundaries properly.