Factored out the entire music player and socket controls to another file