store neighbours as references to cells
corrected rendering for WIDTH != HEIGHT case