public void setSelected(boolean value){
    	this.isSelected = value;
    	if(isSelected){
    		this.setBorder(new MatteBorder(4,0,4,0,Color.CYAN));
    		for(int i = 0;i < pointersToRecolors.length;i++){
    			if(pointersToRecolors[i] != null){
        			pointersToRecolors[i].setBorder(new MatteBorder(4,0,4,0,Color.CYAN));
    			}
    		}
    	}
    	else {
    		this.setBorder(new MatteBorder(2,0,2,0,Color.BLACK));
			for(int i = 0;i < pointersToRecolors.length;i++){
				if(pointersToRecolors[i] != null){
					pointersToRecolors[i].setBorder(new MatteBorder(null));
				}
    		}
    	}
    }