Having trouble with a potentiometer controlling some LEDs

Turns out I wasn't supposed to declare an analog pin as input/output.