<s>[INST] import pygame
import random
import sys

# Initialize Pygame
pygame.init()

# Set up some constants
WIDTH = 800
HEIGHT = 600
BALL_RADIUS = 20

# Create the game window
screen = pygame.display.set_mode((WIDTH, HEIGHT))

# Define some colors
WHITE = (255, 255, 255)
RED = (255, 0, 0)

# Set up the ball
ball_x = WIDTH / 2
ball_y = HEIGHT / 2
ball_speed_x = random.randint(-5, 5)
ball_speed_y = random.randint(-5, 5)

# Set up the paddle
paddle_width = 10
paddle_height = 100
paddle_x = 10
paddle_y = HEIGHT / 2 - paddle_height / 2

# Set up the score
score = 0

# Game loop
while True:
    # Event handling
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            pygame.quit()
            sys.exit()

    # Move the paddle
    keys = pygame.key.get_pressed()
    if keys[pygame.K_UP]:
        paddle_y -= 5
    if keys[pygame.K_DOWN]:
        paddle_y += 5

    # Move the ball
    ball_x += ball_speed_x
    ball_y += ball_speed_y

    # Collision with walls
    if ball_y < BALL_RADIUS or ball_y > HEIGHT - BALL_RADIUS:
        ball_speed_y = -ball_speed_y

    # Collision with paddle
    if (ball_x < paddle_x + paddle_width and
            ball_y > paddle_y and
            ball_y < paddle_y + paddle_height):
        ball_speed_x = -ball_speed_x

    # Collision with goal
    if ball_x < BALL_RADIUS:
        score += 1
        ball_x = WIDTH / 2
        ball_y = HEIGHT / 2
        ball_speed_x = random.randint(-5, 5)
        ball_speed_y = random.randint(-5, 5)

    # Draw everything
    screen.fill(WHITE)
    pygame.draw.rect(screen, RED, (paddle_x, paddle_y, paddle_width, paddle_height))
    pygame.draw.circle(screen, RED, (int(ball_x), int(ball_y)), BALL_RADIUS)
    font = pygame.font.Font(None, 36)
    text = font.render("Score: " + str(score), 1, (10, 10, 10))
    screen.blit(text, (20, 20))

    # Update the display
    pygame.display.flip()
    pygame.time.Clock().tick(60)

Here is my Pong game made in Pygame. However, when a goal is scored, the score increases, but the ball does not reset as intended. What is wrong?[/INST]