Read the following notes on John Conway's Game of Life.
This implementation of Conway's Game of Life uses a table of 10x10 cells to store and display the current board. An in-memory array is used to styore the state of each cell in the next generation. The link between table cell (i,j) and array value [i][j] is that the HTML table cell has an id "ij" (e.g. cell -> <td id="45">).