You control the snake with the arrowkeys. If the snakes head touch hes body or touch the edge he will die.
put sound into the game it makes it much more interesting