John Conway's game of life. See testGameOfLife for useage example. Outputs to console.