Problems with Sketch on Mega 2560

an here is my setup for the Mega 2560 Pin´s

#define latch_pin 31// can use any pin you want to latch the shift registers
#define blank_pin 21// same, can use any pin you want for this, just make sure you pull up via a 1k to 5V
#define data_pin 51// used by SPI, 
#define clock_pin 52// use