Game of life implementation in c