added code to turn off the player when the alarm

goes off if it's on