This is "Snake" using JavaScript