print matrix and find live neighbor list