game of life in c