public boolean canSelect(Unit selected)
    {
        lockSelect = cSelect != null && (cSelect.hasMoved() || cSelect.isMoving()) && !cSelect.isDone();
        return !lockSelect && selected != null && !selected.isMoving() && !selected.hasMoved() && window == null;
    }