Add GameOfLife and move some code into modules.