Conway's Game of Life - Java version