Program for displaying a matrix on the brick screen