Move player code in SoundPlayer class.