Java approach for the Conway's Game of Life