You're right, the health is just the tail length. Each time you hit the wall a certain amount of points are removed from the front of the snake. If the snake is shorter than that number of points then it's game over. You are right the number of points that get removed isn't the same as the number that get added with pickups, so it's not 1-1. I might experiment with making them the same, that's a good idea. Thank you!