public void paint(Graphics g) {
		Rectangle bounds = this.getBounds();
		if(TurnManager.isLocationVisible(this) && ISectors.view.BattleMap.displayMap) { // Location is not in fog of war.
			if(GameManager.getSelectedObj() != null && GameManager.getSelectedObj().getSelectedLoc() != this && TurnManager.isReachable(this)) { // This location is within range of the selected ship without being the selected location itself.
				g.setColor(Color.blue);
				g.fillRect(bounds.x + border, bounds.y + border, bounds.width - (2 * border), bounds.height - (2 * border));
			} else { // Location is not within range of any selected ship, if there are any selected ships.
				g.setColor(Color.black);
				g.fillRect(bounds.x, bounds.y, bounds.width, bounds.height);
			}
			//Draw Conflict border
			if(conflicted) {
				g.setColor(Color.orange);
				for(int i = 0; i < 2; i++) {
					g.drawRect(bounds.x + i, bounds.y + i, bounds.width - (2 * i), bounds.height - (2 * i));
				}
			}
			//draw fleet/planet
			if(_planet != null) {
				BufferedImage _icon;
				_icon = _planet.getIcon();
				if(_icon != null) {
					g.drawImage(_icon, bounds.x + border, bounds.y + border, bounds.width - (2 * border), bounds.height - (2 * border), null);
				}
				if(_planet.getAlliance() != Planet.UNOWNED) {
					// Draw red border
					g.setColor(TurnManager.getPlayerColor(_planet.getAlliance()));
					for(int i = 0; i < borderThickness; i++) {
						g.drawRect(bounds.x + i, bounds.y + i, bounds.width - (2 * i), bounds.height - (2 * i));
					}
				}
			} else if(!_occupants.isEmpty()) {
				BufferedImage _icon;
				if(_occupants.size() > 1) {
					_icon = Ship.getSquadImage();
				} else {
					_icon = _occupants.get(0).getShipImage();
				}
				if(_icon != null) {
					g.drawImage(_icon, bounds.x + border, bounds.y + border, bounds.width - (2 * border), bounds.height - (2 * border), null);
				}
			}
			
			if(GameManager.getSelectedObj() != null && GameManager.getSelectedObj().getSelectedLoc() == this) { // This is the selected location. Draw selection border
				g.setColor(Color.yellow);
				for(int i = 0; i < borderThickness; i++) {
					g.drawRect(bounds.x + i, bounds.y + i, bounds.width - (2 * i), bounds.height - (2 * i));
				}
			}
		} else { // Location is a part of the fog of war.
			if(GameManager.getSelectedObj() != null && GameManager.getSelectedObj().getSelectedLoc() != this && TurnManager.isReachable(this)) { // Location is within travel range of selected ship.
				if((GameManager.getSelectedObj() instanceof Ship && ((Ship)(GameManager.getSelectedObj())).getLoyalty() != TurnManager.currentPlayer) || 
						(GameManager.getSelectedObj() instanceof Planet && ((Planet)(GameManager.getSelectedObj())).getAlliance() != TurnManager.currentPlayer)) {
					g.setColor(Color.DARK_GRAY);
					g.fillRect(bounds.x, bounds.y, bounds.width, bounds.height);
				} else {
					g.setColor(Color.blue);
					g.fillRect(bounds.x + border, bounds.y + border, bounds.width - (2 * border), bounds.height - (2 * border));
				}
			} else { 
				g.setColor(Color.DARK_GRAY);
				g.fillRect(bounds.x, bounds.y, bounds.width, bounds.height);
//				g.fillRect(bounds.x + border, bounds.y + border, bounds.width - (2 * border), bounds.height - (2 * border));
			}
		}
	}