public static void addSomething(Component comp, String type, int x, int y, int width, int height){ //adds a component to the GUI
		ButtonActionListener bal = new ButtonActionListener(); 											//Button action listener
		if(type.equalsIgnoreCase("button")){ 															//If the component to be added is considered a button
			((AbstractButton) comp).addActionListener(bal.act); 										//Add the action listener to it
		}else if(type.equalsIgnoreCase("chkbox")){
			((JCheckBox) comp).addActionListener(bal.act);
		}
		GridBagConstraints c = new GridBagConstraints(); 												//Layout stuff
		c.fill = GridBagConstraints.HORIZONTAL; 														//Fills the cell in the layout
		c.anchor = GridBagConstraints.WEST;
		c.gridx = x; 																					//X position in the layout
		c.gridy = y; 																					//Y position in the layout
		c.gridwidth = width; 																			//How many cells to span horizontal
		c.gridheight = height;																			//How many cells to span vertical
		panel.add(comp,c); 																				//Add the component to the panel
	}