Game of LIfe template using canvas for coding events