update player to correctly use threading to play music in the background