loading

LED Cube problems

I am having some minor (or perhaps major) difficulties with my 3x3x3 Led Cube. I have a program that i wrote that cycles the different 3x3 cross sections and in 3 of the cross sections there is one column of leds that will light up even though it is not commanded or supplied power. I also have a sort of kill all routine that runs after each level is dislplayed that sets every pin to low. in my configuration the problem pins are pins 8, 17, and 26. if anyone knows how to debug this or help in any way it would be much appreciated. Thanks! I have a video of the LED cube with the problems here and a sample of my program here

// kill all routine

for(i=2, i<15, i++)
{
digitalWrite( i, LOW);
}

// Level routines that have problems of LEDs lighting up when they shouldn't

elseif (LVL_Num ==10)
{
  for(j=0, j< Repeat, j++)
  {
   LED_ON(3); LED_ON(6); LED_ON(9); 
   delay(5)
   LED_OFF(3); LED_OFF(6); LED_OFF(9); 
   delay(1)
   LED_ON(11); LED_ON(14); LED_ON(17);
   delay(5)
   LED_OFF(11); LED_OFF(14); LED_OFF(17);
   delay(1)
   LED_ON(19); LED_ON(22); LED_ON(25);
   delay(5)
   LED_OFF(19); LED_OFF(22); LED_OFF(25);
  }
}

elseif (LVL_Num ==11)
{
  for(j=0, j< Repeat, j++)
  {
   LED_ON(1); LED_ON(4); LED_ON(7); 
   delay(5)
   LED_OFF(1); LED_OFF(4); LED_OFF(7); 
   delay(1)
   LED_ON(11); LED_ON(14); LED_ON(17);
   delay(5)
   LED_OFF(11); LED_OFF(14); LED_OFF(17);
   delay(1)
   LED_ON(21); LED_ON(24); LED_ON(27);
   delay(5)
   LED_OFF(21); LED_OFF(24); LED_OFF(27);
  }
}

elseif (LVL_Num ==13)
{
  for(j=0, j< Repeat, j++)
  {
   LED_ON(1); LED_ON(2); LED_ON(3); 
   delay(5)
   LED_OFF(1); LED_OFF(2); LED_OFF(3); 
   delay(1)
   LED_ON(13); LED_ON(14); LED_ON(15);
   delay(5)
   LED_OFF(13); LED_OFF(14); LED_OFF(15);
   delay(1)
   LED_ON(25); LED_ON(26); LED_ON(27);
   delay(5)
   LED_OFF(25); LED_OFF(26); LED_OFF(27);
  }
}