Conway's Game of Life in Java (not necessarily a factory)