help snake led 8x8 mã 7219 with joystick

I'm having trouble with this code, it fails. Can you help me fix it is not
source:Hannes Paulsson