Fixes Issue #1, ball spawning stops when user changes tab

I got lost in the commits