public int numOfLegalMoves(int ind, Variables vars, int[] moves){
		Node var = vars.getByIndex(ind);
		int ctr=0;
		if(var.getNeighbors().size()==0){
			return moves.length;
		}
		
		for(int currVal:moves){
			if(this.isLegal(var, vars, currVal)){
				ctr++;
			}
		}
		
		return ctr;
	}