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 https://www.youtube.com/watch?v=g_qiXhj66R8

with links to the code here https://docs.google.com/document/d/18hU2J7o4PT4BMKPeFqeWyQ8fjLcOoRpuyRoW33_yEFE/edit

and the schematic here https://docs.google.com/file/d/0BxvXtnuB1ls6YjQwYmFhYjctZTdjNi00MDAzLThlZjAtZmU5MDdjOWRmNmMy/edit