Is the cell at the mapped {i,j} location alive right now?
bool customIsAlive(int Function(int, int) f, int i, int j) => _cells[f(i, j)];