public static void playSound(String s) {
		if(s.equals("damage")) {
			AudioClip[] damage= new AudioClip[4];
			Random gen= new Random();	//select a random damage noise to play
			try {
				damage[0]= Applet.newAudioClip(new URL("file:Music/damage0.wav"));
				damage[1]= Applet.newAudioClip(new URL("file:Music/damage1.wav"));
				damage[2]= Applet.newAudioClip(new URL("file:Music/damage2.wav"));
				damage[3]= Applet.newAudioClip(new URL("file:Music/damage3.wav"));
				
				int rand= gen.nextInt(4);
				damage[rand].play();
			}
			catch (Exception e) {
				System.err.println(e);
			}
		}
		
		if(s.equals("equip")) {
			try {
				AudioClip equip= Applet.newAudioClip(new URL("file:Music/equip.wav"));
				equip.play();
			}
			catch(Exception e) {
				System.err.println(e);
			}
		}
		if(s.equals("error")) {
			try {
				AudioClip error= Applet.newAudioClip(new URL("file:Music/Error.wav"));
				error.play();
			}
			catch(Exception e) {
				System.err.println(e);
			}
		}
		
		if(s.equals("god")) {
			try {
				AudioClip godMode= Applet.newAudioClip(new URL("file:Music/GODMODE.wav"));
				godMode.play();
			}
			catch(Exception e) {
				System.err.println(e);
			}
		}
		
		if(s.equals("enemydead")) {
			try {
				AudioClip death= Applet.newAudioClip(new URL("file:Music/enemyDeath.wav"));
				death.play();
			}
			catch(Exception e) {
				System.err.println(e);
			}
		}
		
		if(s.equals("load")) {
			try {
				AudioClip loading= Applet.newAudioClip(new URL("file:Music/LOADUP.wav"));
				loading.play();
			}
			catch(Exception e) {
				System.err.println(e);
			}
		}
		
		if(s.equals("playerdead")) {
			try {
				AudioClip death= Applet.newAudioClip(new URL("file:Music/Player_Death.wav"));
				death.play();
			}
			catch(Exception e) {
				System.err.println(e);
			}
		}
		
		if(s.equals("potion")) {
			try {
				AudioClip heal= Applet.newAudioClip(new URL("file:Music/potion.wav"));
				heal.play();
			}
			catch(Exception e) {
				System.err.println(e);
			}
		}
		
		if(s.equals("saxxy")) {
			try {
				AudioClip cheaty= Applet.newAudioClip(new URL("file:Music/saxxy.wav"));
				cheaty.loop();
			}
			catch(Exception e) {
				System.err.println(e);
			}
		}
		
		if(s.equals("send")) {
			try {
				AudioClip dial= Applet.newAudioClip(new URL("file:Music/Sending.wav"));
				dial.play();
			}
			catch(Exception e) {
				System.err.println(e);
			}
		}
		
		if(s.equals("party")) {
			try {
				AudioClip funk= Applet.newAudioClip(new URL("file:Music/Who Likes to Party.wav"));
				funk.loop();
			}
			catch(Exception e) {
				System.err.println(e);
			}
		}
		
	}