Paint and Matrix to draw the cells

maintained by: - A.H and M.N   Last modification: 4/11/98