added snake.c