Updated source with new functionality: to display the current length of the snake as a number in the corner