adds game of life code