Game of Life in c