Quick Question on a simple Potentiometer sketch

yea but I have no idea why when I connect the potentiometer to the 5v pin the Arduino shuts off. I got my Arduino already put together from SainSmart.

Got any ideas?

Thanks.
Stephen