When a ball hits the sword, it grabs the sword for 3 seconds. If it hits another ball while holding the sword, that ball will be eliminated. The last ball standing wins. The balls names are simply just their color. Comment which ball won the first time you run the project, because it will give completely different results every time.
music from https://scratch.mit.edu/projects/165522549/