8X8 Direct drive matrix

I figured it out. The second diagram was representing pin numbers on the LED matrix in first pic not the Arduino board. I rewired it and now I have a nice 8X8 LED matrix that actually works. Can someone take a look at code though and tell me how to slow the scrolling speed of the words down a bit? Thanks.