     LogMove();
     GenerateFood();
   }
-
-  //Check if hit wall
-
-  if(p1.X >= maxX || p1.X <= minX || p1.Y >= maxY || p1.Y <= minY)
-  {
-    gameRunning = false; 
-  }
-
-  //Check if hit tail
 }
 
 void DrawTail()


void CollisionDetection()
{
  // Check if on food
  if(p1.X == foodLocation.X && p1.Y == foodLocation.Y)
  {

      previousPosition.Y = p1.Y;
      LogMove();
    }
    DrawTail();    
    
    arduboy.setCursor(63, 0);  
    arduboy.print("Score ");
