Use the arrow keys to move the snake and it collects food. and gain a point. After playing the game you should refresh the screen then exit the project.
Notes: Sorry Guys there was some mistake, it actually breaks sometime and joins again. Credits: all thanks goes to @shravansrinath2011. Notes (2): New updates there, food for the snake has changed.