This is a simple Java Swing game where you control a worm using the keyboard arrow keys. The worm moves around the game panel, and its speed increases whenever it collides with a ball. The objective is to control the worm and avoid colliding with the boundary of the game panel while trying to collect as many balls as possible to increase your score.
Control the worm using arrow keys (up, down, left, right). Collect balls to increase the worm's speed. Avoid colliding with the boundary of the game panel. Color-changing balls when they collide with each other.
Up Arrow: Move the worm upward. Down Arrow: Move the worm downward. Left Arrow: Move the worm to the left. Right Arrow: Move the worm to the right.
The game ends if the worm collides with the boundary of the game panel. The worm's speed increases whenever it collides with a ball