 // make an instance of arduboy used for many functions
 Arduboy arduboy;
 
-struct coords
+class coords
 {
+  public:
   int X = 0;
   int Y = 0; 
 };

int minY = 0;

int score = 0;

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

// This function runs once in your game.

  // first we clear our screen to black
  arduboy.clear();

  CollisionDetection();

  if(arduboy.pressed(RIGHT_BUTTON)) {
    p1.dir = 'R';
