public void mouseClicked(MouseEvent e) {
		if (exitButton.onButton(getMouse()))
			System.exit(0);
		if (play.onButton(getMouse()))
			started = true;
		if (grid.getUI().onBox(getMouse()))
			grid.getUI().alter();
		if (grid.getUI().open()) {
			if (grid.getUI().on(getMouse())) {
				if (grid.getUI().getTowerOn(getMouse()) != -1) {
					grid.getUI().towerClicked(
							grid.getUI().getTowerOn(getMouse()));
				}
			} else {
				for (int i = 0; i < grid.getUI().getTowers().size(); i++)
					if (grid.getUI().getTowers().get(i).clicked())
						if (grid.canBePlaced(
								(int) getMouse().getX() / grid.sideLength(),
								(int) getMouse().getY() / grid.sideLength()))
							grid.getUI()
									.getTowers()
									.get(i)
									.place((int) getMouse().getX()
											/ grid.sideLength(),
											(int) getMouse().getY()
													/ grid.sideLength());
			}

		}

	}