Full-colour RGB 4x4 button pad (monome-esque)

ok, i have an idea, and i'm sure it'll work.

if you can... tell me what pins on the arduino, are connected to the other side, becuase the picture confuses me, especially the connection the the digital pots.

so if you could tell me where every used pin on the arduino goes to (ex pin 12 arduino to pin 5 digital pot )
i'm sure my project could work, becuase i am certain that the wrong pins are in the wrong place, and that has to be the problem!

thanks in advance, and if u need any links, just tell me...
-big93

edit:

here is the link to the digital pot page where it shows the pins, so you can identify it easier...