   arduboy.drawPixel(p1.X, p1.Y, 1);
   arduboy.drawPixel(foodLocation.X, foodLocation.Y, 1);
   DrawTail();
-  LogMove();
-  
-  arduboy.setCursor(0, 0);  
+  if(p1.X != previousPosition.X || p1.Y != previousPosition.Y)
+  {
+    previousPosition.X = p1.X;
+    previousPosition.Y = p1.Y;
+    LogMove();
+  }
+  
+  
+  arduboy.setCursor(63, 0);  
   arduboy.print("Score ");
-  arduboy.print(score);
+
+  char scoreBuff[5];
+  sprintf(scoreBuff, "%05d", score);
+  
+  arduboy.print(scoreBuff);
   
 
   // then we finaly we tell the arduboy to display what we just wrote to the display


  // here we set the framerate to 15, we do not need to run at
  // default 60 and it saves us battery life
  arduboy.setFrameRate(15);

 StartGame(); 
}

      }
      else
      {
        tailPosition = p1.Len -1;
      }
   } 
}

void DrawFrame()
{
  arduboy.drawRect(minX,minY, maxX, maxY, WHITE);
}

// This function runs once in your game.
