@Override
	public boolean isLegal(Node var, Variables vars, int currVal){
		CircuitNode cVar = (CircuitNode)var;
		CircuitVariables cVars = (CircuitVariables)vars;
		int[] loc = cVars.valToCoordinate(currVal);
		cVars.updateBoard();
		int width = cVars.width;
		int height = cVars.height;
		for(int i = loc[0]; i < loc[0]+cVar.width; i ++){
			for(int j = loc[1]; j < loc[1]+cVar.height; j ++){
				if(i>=width||j>=height||cVars.circuitBoard[i][j]!='.'){
					return false;
				}
			}
		}
		
		return true;
	}