public static synchronized void playSound(final String url, boolean loop) {
		try {
			if (url.contains("hit")) {
				if (hit != null) hit.stop();
				hit = AudioSystem.getClip();
				String path = "/sounds/" + url;
				AudioInputStream inputStream = AudioSystem.getAudioInputStream(Game.class.getResource(path));
				hit.open(inputStream);
				hit.start();
			} else if (url.contains("step")) {
				if (step != null) step.stop();
				step = AudioSystem.getClip();
				String path = "/sounds/" + url;
				AudioInputStream inputStream = AudioSystem.getAudioInputStream(Game.class.getResource(path));
				step.open(inputStream);
				step.start();
			} else {
				Clip clip = AudioSystem.getClip();
				String path = "/sounds/" + url;
				AudioInputStream inputStream = AudioSystem.getAudioInputStream(Game.class.getResource(path));
				clip.open(inputStream);
				if (!loop) {
					clip.start();
				}
				if (loop) {
					clip.loop(Clip.LOOP_CONTINUOUSLY);
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}