HELP! Lilypad Tri color led

So I am trying to do something simple. Right now I have a normal arduino with a lilypad tricolor led hooked up the the appropriate parts.
What I cant figure out is how to turn off the other values when they are not needed. When I start the project the red, green, and blue all appear, but once I want one distinct color to show up the other values are still there. Here's my code, I'm trying to make it blink at different intervals and colors depending on the number of times a word is said in one's twitter updates. I'm horrible at this stuff so bare with my awful explanations and misunderstandings of how things work.

import processing.serial.*;
import cc.arduino.*;
import controlP5.*;

ControlP5 controlP5;
Arduino arduino;



int redPin = 11;
int bluePin = 10;
int greenPin = 9;
Twitter twitter;  
String myTimeline;
User[] friends;
// String[] textinput;
String textinput = ""; 
String s;
String j;
String[] stringmatch;







String username = "username"; // add your own here
String password = "password"; // add your own here
String textValue = "";
Textfield myTextfield; 

java.util.List statuses = null;
int ledPin1 = 11;
int timer;    
int timelength = 5000; // 5 seconds
boolean broken= false;

int phuck = 0; 

void setup() {
  size(400, 400);
  textFont(createFont("Arial", 12));
  colorMode(HSB);

  twitter = new Twitter(username,password);
  timer = millis();
  // getstatus(); 
  controlP5 = new ControlP5(this);
  myTextfield =controlP5.addTextfield("write word to search here", 100, 160, 200, 20);
  myTextfield.setFocus(true);
  
  arduino = new Arduino(this, Arduino.list()[0], 115200);
 
  arduino.pinMode(redPin, Arduino.OUTPUT);
  arduino.pinMode(bluePin, Arduino.OUTPUT);
  arduino.pinMode(greenPin, Arduino.OUTPUT);
  
}

void draw() {
  background(33);
  //  println(phuck); 
  //  getstatus();
  // println(s); 
  // println(j); 
  //  text(s, 15, 30);
  //  text(j, 15, 70);

  //text(textinput, 15, 150);
  //text(phuck, 15, 50);
  textAlign(LEFT);
  fill(200);
  text("fill search word in line below", 100, 20);
  textAlign(LEFT);
  text("then hit delete to start search over", 100,30);
  
  arduino.digitalWrite(redPin,Arduino.LOW);
  arduino.digitalWrite(bluePin, Arduino.LOW);
  arduino.digitalWrite(greenPin, Arduino.LOW);
  
  
  if(phuck < 11 && phuck > 0) {



    arduino.digitalWrite(redPin, Arduino.HIGH); // light goes on
    delay(5000); // wait 5 second
    arduino.digitalWrite(redPin, Arduino.LOW);// light goes off
    delay(1000); // wait 1 second
    arduino.digitalWrite(bluePin, Arduino.LOW); //turns blue off
    arduino.digitalWrite(greenPin, Arduino.LOW); // turns green off

    println("under ten");
  }

  else if  (phuck > 10) { 
   

    arduino.digitalWrite(bluePin, Arduino.HIGH); // light goes on
    delay(3000); // wait 3 second
    arduino.digitalWrite(bluePin, Arduino.LOW);// light goes off
    delay(1000); // wait 1 second
    arduino.digitalWrite(redPin, Arduino.LOW); // turns red off
    arduino.digitalWrite(greenPin, Arduino.LOW); //turns green off



    println("over ten");
  }
  else if (phuck == 0) {

    arduino.digitalWrite(greenPin, Arduino.HIGH); // light goes on
    delay(1000); // wait 1 second
    arduino.digitalWrite(greenPin, Arduino.LOW);// light goes off
    delay(1000); // wait 1 second
    arduino.digitalWrite(redPin, Arduino.LOW); // turns red off
    arduino.digitalWrite(bluePin, Arduino.LOW); // turns blue off

    print("phuck is zero"); 
  }




}




void controlEvent(ControlEvent theEvent) {
  println("textinput"+theEvent.controller().name()+"': "+theEvent.controller().stringValue());
}


void keyReleased(){

  // println(keyCode); 
  if ( keyCode == 8){//delete
    textinput = "";
    phuck = 0; 
    //println("clear"); 
  }
  else if ( keyCode == 10){//enter

    //textinput = " ";
    getstatus(); 

  }
  else if( keyCode == SHIFT){//shift
  }
  else{
    textinput = textinput + key; 
  } 
} 






void getstatus(){
  //println(textinput); 
  try
  {
    statuses = twitter.getUserTimeline(); 
    // broken = false;
  }
  catch(TwitterException e) 
  { 
    println(e.getStatusCode());
    broken = true;
  }

  // println(statuses);
  for(int i = 0;  i< statuses.size(); i++ ){
    if (broken == false){
      Status status = (Status)statuses.get(i);
      s = status.getUser().getName() + ":" + status.getText(); 
      //Date j = status.getCreatedAt();
      j = status.getCreatedAt().toString(); 
      int p1 = s.indexOf(textinput); // textinput

        String x = status.getText(); 
      //      String[] stringmatch = match(x, textinput);
      stringmatch = match(x, textinput);
      if (stringmatch != null) {
        // This will print to the console.
        // println("Found a match in '" + x + "'");  
        phuck ++;
        println(phuck); 
      } 
      else {
        println("No match found in '" + x + "'");
      }
    } 
  }
}

eventually i want to use this with xbee's and the lilypad. the project is titled "Tweet Sleeve" which is currently the only thing I like about the project! haha argh frustrations!

PS: I removed my own username/password for purposes of this example.

Thanks for your help! Any input/advice is much appreciated!

ahhh! bump!

You need to start with something simple. Create a Processing application that simply turns the 3 colors on for predefined periods of time.

Turn the red on. Wait 2 seconds.
Turn the red off, and the blue on. Wait 5 seconds.
Turn the blue off, and the green on. Wait 3 seconds.
Turn the green off. Wait 1 second.
Turn all 3 on. Wait 10 seconds.

When that is working, add 3 buttons. Press the red button. Turn the red light on if it's off, or off if it's on. Do the same for the blue and green buttons.

When that works, expand on that to turn the lights on based on the twits on the internet.