private ActionListener e (final int i) {
		return new ActionListener() {
			public void actionPerformed (ActionEvent e) {
				if (buildingupgrading.length() != 0) {
					JOptionPane.showMessageDialog(null, "You can only build one building at a time", "ERROR", JOptionPane.ERROR_MESSAGE);
					return;
				}
				buildingplace = i;
				if (bl[i].equals("Lumbermill")) setlumbermillgui();
				else if (bl[i].equals("Farm")) setfarmgui();
				else if (bl[i].equals("Mine")) setminegui();
				else if (bl[i].equals("Quarry")) setquarrygui();
				else if (bl[i].equals("Home")) sethomegui();
				else if (bl[i].equals("Science Center")) setsciencecentergui();
				else if (bl[i].equals(" ")) newbuilding.setVisible(true);
			}
		};
	}