public void assignOrder(Orders order, Ship target) {
		if(order == Orders.UPGRADE) {
			if(Location.distance(_location, target.getLoc()) < repairRange) {
				if(target.setUpgrading(true)) {
					clearOrder();
					_upgradeTarget = target;
					_order = order;
				}
			} else {
				JOptionPane.showMessageDialog(_location, "The ship is too far away to be upgraded!\nOnly adjacent ships can be upgraded.");
			}
		} else {
			assignOrder(order);
		}
	}