public static void playSound(Sound sound, boolean important){
		if(MyGame.mute) return;
		
		long currentTime = System.currentTimeMillis();
		int newIndex = -1;
		float lowestTime = Float.MAX_VALUE;
		for(int i = 0; i < maxBufferSize; i++){
			if(currentTime - soundTimer[i] > 3000 || soundBuffer[i] == null){
				newIndex = i;
				break;
			} else {
				if(!soundImportance[i] && lowestTime > soundTimer[i]){
					lowestTime = soundTimer[i];
					newIndex = i;
				}
			}
		}
		if(newIndex != -1){
			if(soundBuffer[newIndex] != null) {
				soundBuffer[newIndex].stop();
			}
			soundBuffer[newIndex] = sound;
			soundBuffer[newIndex].stop();
			soundBuffer[newIndex].play();
			soundImportance[newIndex] = important;
			soundTimer[newIndex] = System.currentTimeMillis();
		}
		
	}