A simple line game in C program