LED Matrix Accelerometer. Help changing/rewriting code

I have an 8x8 red led matrix working with an accelerometer to display a dot that moves with acceleration.
What I would like to do is eliminate a lot of wires by adding a led matrix driver instead of running the led matrix on virtually all the uno's available pins.

My 8x8 led matrix came with it's own driver board and it has a MAX7219 IC on it. Linksprite LED matrix kit.

Changing the code I already have to allow the arduino to run the led matrix via the MAX7219 is what I need help with.

I found this project here - YouTube

with links to the code here Arduino_LEDACEL_program_code.txt - Google Docs

and the schematic here Levelling_Device_retouched_pinned.png - Google Drive