     DIDR0  = 1 << ADC_CHANNEL; // Turn off digital input for ADC pin
 }
 
-int testThree() {
- 	// returns 1U 2D 3L 4R 5C 0mistake
- 	int ar[3];
- 	for(int i=0;i<3;i++)
-  	{
-		int sensorValue = analogRead(A1);
-		ar[i] = sensorValue;
-		delay(10);        // delay in between reads for stability  
-  	}
-  	if(ar[0]==ar[1] && ar[1]==ar[2]){
-
-		if (ar[1]==1023)
-			return(4);
-		if (ar[1]==513)
-			return(1);
-		if (ar[1]==256)
-			return(3);
-		if (ar[1]==768)
-			return(5);
-		if (ar[1]==0)
-			return(2);
-		else 
-			return(-10);
-	} 
-  	else
-		return(1111);
-}
-
-int consolidate(){
-  	int newval=testThree();
-  	if(newval==globaLast){
-		globaLast=newval;
-		return(0);
-  	}
-  	else{
-		globaLast=newval;
-		return(newval);
-  	}
-}
-  
 int partyMode() {
     switch (ADMUX)
     {

uint16_t      spectrum[FFT_N/2]; // Spectrum output buffer
volatile byte samplePos = 0;     // Buffer position counter
//global Variables for consolidate/testThree
int UP 		= 1;
int DOWN 	= 2;
int LEFT 	= 3;
int RIGHT 	= 4;
int THROUGH	= 5;
int NONE	= 0;
// global variables for menu orientiation
// Menus are Stacked as Such
/*

    }
}

int testThree() {
 	// returns 1U 2D 3L 4R 5C 0mistake
 	int ar[3];
 	for(int i=0;i<3;i++)
  	{
		int sensorValue = analogRead(A1);
		ar[i] = sensorValue;
		delay(10);        // delay in between reads for stability  
  	}
  	if(ar[0]==ar[1] && ar[1]==ar[2]){

		if (ar[1]==1023)
			return(4);
		if (ar[1]==513)
			return(1);
		if (ar[1]==256)
			return(3);
		if (ar[1]==768)
			return(5);
		if (ar[1]==0)
			return(2);
		else 
			return(0);
	} 
  	else
		return(0);
}

int consolidate(){
  	int newval=testThree();
  	if(newval==globaLast){
		globaLast=newval;
		return(0);
  	}
  	else{
		globaLast=newval;
		return(newval);
  	}
}
  
void apply(int r, int g, int b){
	analogWrite(9,r); // red transistor base pin @ 9
	analogWrite(10,g); // green transistor base pin @ 10
