but how can i diplay in the led matrix?
Don't forget it.
Presumably, somewhere in your development process, there was a time when the matrix worked (otherwise you wouldn't have expanded your code so much), so you could go back to that and figure out where you went wrong.
Can I recommend the auto-format tool in the IDE?
If you hit ctrl-T, it will indent your code and present it in a more readable state.