corrected bug in printing grid
colorise output