let sum = neighbors.reduce((a,b) => a+b)
if (c === 1) {
nextState = sum == 2 || sum == 3 ? 1 : 0
} else {
nextState = sum == 3 ? 1 : 0
}