Snake in C