public void clickedUnit(Unit unit) {

		reset();

		clickedName.setText(unit.getName());
		clickedName.setOpaque(false);
		gameIconPanel.add(clickedName);

		if (unit.getName().equals("Tank") || unit.getName().equals("Marine")) {

			String path = "/imgs/units/" + unit.getName() + ".png";
			if (unit.getName() == "Marine") {
				path = "/imgs/units/Marines.png";
			}

			this.unitIcon = new JLabel(new ImageIcon(drawImage(path)));
			gameIconPanel.add(iconPanel);
			iconPanel.add(unitIcon);
			gameIconPanel.repaint();

			textbox.setText("Health: " + unit.getCurrentHealth() + "/"
					+ unit.getBaseHealth() + "\n" + "Attack Damage: "
					+ unit.getCurrentAttackDamage() + "/"
					+ unit.getBaseAttackDamage() + "\n" + "Units: "
					+ unit.getCurrentNumberUnitsInGroup() + "/"
					+ unit.getBaseNumberUnitsInGroup() + "\n" + "Moves: "
					+ unit.getCurrentMoveRange() + "/"
					+ unit.getBaseMoveRange() + "\n" + "Coordinates: " + "("
					+ unit.getCell().getCellPosX() + ","
					+ unit.getCell().getCellPosY() + ")" + "\n" + "Owner: "
					+ unit.getOwner().getPlayerName());
			textbox.setOpaque(false);
			gameIconPanel.add(textbox);

		}

		if (unit.getName() == "Tank") {
			rightPanel.add(setTankBar(unit));
			this.add(rightPanel);

		} else if (unit.getName() == "Marine") {
			rightPanel.add(setMarineBar(unit));
			this.add(rightPanel);
		} else {
			System.out.println("No switch found for unit: " + unit.getName());
		}

		this.revalidate();
	}