Game of Life implementation - Java