public boolean isLegal(Node var, Variables vars, int currVal){
		for(int temp: var.getNeighbors()){
			int neighborVal = vars.getByIndex(temp).getVal();	
			if(!this.isSatisfied(new int[]{currVal, neighborVal})){
				return false;
			}
		}
		return true;
	}