By default all the pins are set as inputs. If you do a digitalWrite(pin, HIGH) to an input pin it will turn on the internal pull-up resistor (just like pinMode(pin,INPUT_PULLUP)). This will turn an LED on dimly. Make sure you set each output pin to OUTPUT mode:
for (int pin=3; pin <= 13; pin++)
pinMode(pin, OUTPUT);