private void removePanel(JPanel panel) {
		Boolean AlreadyExists = true;
		try{
			if(panel.getParent() != layers)
			{
				AlreadyExists = false;
			}
		}
		catch(NullPointerException e){
			AlreadyExists = false;
		}


		if(AlreadyExists)
		{
			layers.remove(panel);
			panel = null;
		}

	}