4X4 Matrix

Your anodes: 11,10,9,8
Your cathodes: 7,6,5,4

The sketch pins:

const int anode[4] = { 11, 9, 7, 5 };
const int cathode[4] = { 10, 8, 6, 4 };

Have you rewritten the sketch to account for your revised pin usage?