So 2 questions Is the CODE OK and Am I connecting to the correct points on the NANO Board?
I have written the attached code for a "Useless Box".
I have also borrowed some code from other builders of the "Useless Box" So thank you to them for posting their code.
You've missed out some vital information. What servos are you using and how are the servos powered. Most trouble with servos ends up being power related. Have you tested the servos with the Sweep example program? Do they work with that?
BTW your switch is on pin 3 not pin 2. How is the switch wired? Do you have a pull down resistor? A complete circuit diagram would be useful.
if (selectedMove > 2) {
selectedMove = 0;
} //when all moves are played, repeat the moves from beginning
Given this how do you ever expect to get to selectedMove 3,4,5,6,7,8 and 9?