private void changeResolution(int res) {
		if (resolution == resolutionSelections.length-1) {
			increase.setEnabled(false);
			decrease.setEnabled(true);
			answer = true;
		} else if (resolution == 0) {
			decrease.setEnabled(false);
			increase.setEnabled(true);
			answer = false;
		} else {
			increase.setEnabled(true);
			decrease.setEnabled(true);
			answer = false;
		}
		if (answer) {
			this.displayAnswer();
		} else {
			this.hideAnswer();
		}
		try {
			BufferedImage image = Pixels.this.getOriginalBufferedImage();
			ResolutionChanger resChange = new ResolutionChanger(image);
			Image img = resChange.decreaseResolution(resolutionSelections[resolution]);
			Image scaled = img.getScaledInstance(512, 512, Image.SCALE_SMOOTH);
			numPixels.setText(resolutionSelections[resolution] + "x" + resolutionSelections[resolution] + "=" + resolutionSelections[resolution]*resolutionSelections[resolution]);
			Pixels.this.changePicture(scaled);
			
		} catch (IOException e) {
			
			e.printStackTrace();
		}
	}