private boolean CorrectCycle(int[] cycle){
		if(cycle.length < 2){
			return false;
		}
		
		/*The variable "used" is used to ensure that we have a cycle in 
		 * 	proper form. 
		 */
		int[] used = new int[n+1];
		for(int j = 1; j <= n; j++){//sets it equal to zero
			used[j] = 0;
		}
		
		for(int j = 0; j < cycle.length; j++){
			if(cycle[j] > n || cycle[j] < 1){//makes sure entry is in range
				return false;
			}
			used[cycle[j]]++;//counts the number of times and entry is in the cycle
		}
		for(int j = 1; j <= n; j++){
			if(used[j] > 1){//if entry is repeated
				return false;
			}
		}
		return true;
	}