I don't think that you can just change the LED modules and expect it to work. The matrix itself is wired differently and the circuit from the MAX7219 chip has to take that into account. The software will then accommodate the different row/column orientation that may result.