Modified ad checking routine

It now only checks for ads while a track is playing