public void preloadSound(String name) {
		Clip clip = null;
		AudioInputStream sound = null;
		if (window.clips.containsKey(name)) {
		} else {
			try {
				final File soundFile = new File(window.getClass()
						.getResource(name).getFile());
				sound = AudioSystem.getAudioInputStream(soundFile);
				// load the sound into memory (a Clip)
				final DataLine.Info info = new DataLine.Info(Clip.class,
						sound.getFormat());
				clip = (Clip) AudioSystem.getLine(info);
				window.clips.put(name, clip);
				window.sounds.put(name, sound);
			} catch (final Exception e) {
				throw new RuntimeException("Resource in notloadable");
			}
		}
	}