Using more than 13 ledpins ?

Use something like the 74HC595, read this: http://www.arduino.cc/en/Tutorial/ShiftOut Or the max7219, use the search here on the forum to find some info.