public void activateSwitches(Chunk[][] chunks){
		
		/*
		 * Play sound if not already played
		 */
		if (!soundPlayed && properties.containsKey("playSound")){
			soundPlayed = true;
			if (Model.background != null){
				Model.background.stop();
			}
			try {
				Model.background = AudioLoader.getAudio("OGG", ResourceLoader.getResourceAsStream("/data/audio/" + properties.get("playSound") + ".ogg"));
				Model.background.playAsSoundEffect(1.0f, 1.0f, false);
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		
		if (properties.containsKey("stopSound")){
			if (Model.background != null){
				Model.background.stop();
			}
		}
		
		if (properties.containsKey("win")){
			if (Model.win == -1){
				Model.win = 1000;
				Spectre.speed = .05f;
				Spectre.strength = 5;
			}
		}
		
		/*
		 * Iterating through a HashMap is complicated.
		 * This sets the x value for each sprite in sprites.
		 */
		Iterator<Entry<String, Boolean>> it = entrySwitches.entrySet().iterator();
		while (it.hasNext()){
			Map.Entry<String, Boolean> pairs = (Map.Entry<String, Boolean>)it.next();
			String loc = pairs.getKey();
			String[] coords = loc.split("_");
			//System.out.println(pairs.getValue());
			int x = Integer.parseInt(coords[0]);
			int y = Integer.parseInt(coords[1]);
			if (!chunks[x][y].getState().equals(pairs.getValue() ? "A" : "B")){
				chunks[x][y].setState(pairs.getValue());
				System.out.println("CHANGE");
				Random random = new Random();
				try {
					AudioLoader.getAudio("OGG", ResourceLoader.getResourceAsStream("/data/audio/effects/rock-slide-" + random.nextInt(5) + ".ogg")).playAsSoundEffect(1.0f, 1.0f, false);
					Model.rumble = random.nextInt(50) + 50;
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
			
		}
	}