Finished main code body for game of life