public void mouseUp(MouseEvent e, int x, int y) {

		Position to = GfxConstants.getPositionFromXY(x, y);
		if (to.getRow() >= 0
				&& to.getRow() < GameConstants.WORLDSIZE
				&& to.getColumn() >= 0
				&& to.getColumn() < GameConstants.WORLDSIZE) {
			if (isDraggingUnit) {
				dragTracker.mouseUp(e, x, y);
				game.moveUnit(draggingFrom, to);
				isDraggingUnit = false;
				dragTracker = null;
				draggingFrom = null;
			}
		}
		else
		{

			if(dragTracker != null) dragTracker.mouseUp(e, x, y);
			isDraggingUnit = false;
			dragTracker = null;
			draggingFrom = null;
		}
	}