My attempt at a working game of life