Fixed an issue where the balls would spawn after quitting the application