C language project combat