First LED Chaser and Curious Problem

You can use all 20 pins as outputs. However if you do not properly set the modes then what you describe might happen. Have a look at my basic sketcheshttp://blog.blinkenlight.net/experiments/basic-sketches/. Maybe you did not set the modes properly?