 // make an instance of arduboy used for many functions
 Arduboy arduboy;
 
-int maxX = 127;
-int minX = 0;
-int maxY = 63;
-int minY = 10;
+byte maxX = 127;
+byte minX = 0;
+byte maxY = 63;
+byte minY = 10;
+bool gameRunning = true;
 
 class coords
 {
   public:
-  int X = 0;
-  int Y = 0; 
+  byte X = 0;
+  byte Y = 0; 
 };
 
 typedef struct coords Coords;
 
 struct player
 {
-  int X = 0;
-  int Y = 0;
+  byte X = 0;
+  byte Y = 0;
   char dir = 'R';
-  int Len = 0;
-  static const int MaxLength = 10;
+  int Len = 1;
+  static const int MaxLength = 100;
   Coords *Moves[MaxLength] = {NULL};
 };
 

      p1.Moves[arrayPosition]->X = p1.X;
      p1.Moves[arrayPosition]->Y = p1.Y;

  if(arrayPosition < p1.Len)
  {
    arrayPosition += 1;
    

void GenerateFood()
{
  arduboy.initRandomSeed();
  foodLocation.X = random(minX + 1, maxX - 1);
  foodLocation.Y = random(minY + 1, maxY - 1);
}

void StartGame()
