game of life working with ndarray and slicing