question re' controlling stepper with potentiometer (easy driver)

Ok guys, I got everything hooked up how I thought I needed it and uploaded the code from the motorknob tutorial but with just pins 2 & 3 listed instead of 8, 9, 10, 11, hooked up the power to the arduino and the Stepstick/Pololu, but nothing happened except the stepstick chip getting very hot very quickly!

This is the circuit I've put together -

The pot is outputting a varied voltage of 0-5v+ to Analog 0 on the arduino, and the input to the A4988 driver board is from pins 2 & 3.

Could someone possibly help point out what I've done wrong please? Presumably a dumb noob mistake but I do learn from them, honest!

Really appreciate it. I'm itching to get this motor control running now I have all I need, assuming of course I haven't somehow killed the motor driver. I've got another if that's happened but would rather isolate what I've done wrong first of course.