Handles the case when a song finishes playing