Survival game programmed in C