   // first we clear our screen to black
   arduboy.clear();
 
-  // the next couple of lines will deal with checking if the D-pad buttons
-  // are pressed and move our text accordingly.
-  // We check to make sure that x and y stay within a range that keeps the
-  // text on the screen.
+  CollisionDetection();
 
   if(arduboy.pressed(RIGHT_BUTTON)) {
     p1.dir = 'R';

int minY = 0;

int score = 0;

void GenerateFood()
{
  foodLocation.X = 0;
  foodLocation.Y = 0;
}

// This function runs once in your game.

  }

  arduboy.drawPixel(p1.X, p1.Y, 1);
  arduboy.drawPixel(foodLocation.X, foodLocation.Y, 1);
  DrawTail();
  LogMove();
  
  arduboy.setCursor(0, 0);  
  arduboy.print("Score ");
  arduboy.print(score);
  

  // then we finaly we tell the arduboy to display what we just wrote to the display
  arduboy.display();
