This is the code for conways game of life