Conway's Game of Life on a canvas