modified endSong logic
server side of endSong changes