Game of Life implementation passing all tests