Connecting LED Matrix with Mega 2560 R3

Hello. I need some help with using the correct Mega 2560 R3 pins to get my LED matrix to work.

I got the 24x8 LED matrix done via this tutorial (schematic) and I'm convinced that everything's done correctly, no shortages, etc. (tested).
Now I got Mega 2560 R3 (a different Arduino was used in the instructable) and can't seem to get the code to work. I figure that I just fail to connect the matrix with Arduino correctly, so I need assistance.

Part of the code that defines the used pins (full code):

int latchPin = 10;
int clockPin = 13;
int dataPin = 11;
int clock = 9;
int Reset = 8;
int latchPinPORTB = latchPin - 8;
int clockPinPORTB = clockPin - 8;
int dataPinPORTB = dataPin - 8;

Arduino Mega 2560 R3 pinouts (photo).