change ball spawning logic