This is a rudimentary version of Snake (it only has collision detection and movement, but no food generation or snake extension).