You can check coding issues by using the serial monitor and adding serial prints in strategic places. I don't have your hardware but by doing that I can see that your outer for-loop runs at about 19000 milliseconds and your inner for-loop at about 75 milliseconds.
===
Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advise on) your project
See About the IDE 1.x category.