@ -35,7 +35,11 @@ struct snake* remove_snake(struct snake* snake) {
void free_snake(struct snake* sn){
}
int is_snake(struct snake* snake,int x,int y){
int is_snake(struct snake* snake, int x, int y) {
while (snake) {
if (snake->x == x && snake->y == y) return 1;
snake = snake->next;
return 0;