I have the part about adding up the sum of neighbors in a matrix, the part where I\'m stuck is making it work for as many matrices specified in int gen = numberofgeneratio
int gen = numberofgeneratio