Reasonably sure that those are the SPI pins ![]()
And you can make your life a lot easier if you just refer to the analog pins as A0, A1 etc.
pinMode(A0, OUTPUT); // Step control 7
pinMode(A1, OUTPUT); // Direction 7
pinMode(A2, OUTPUT); // Step control 8
pinMode(A3, OUTPUT); // Direction 8