Working on 8x8 matrix