```
public static float GetDistance(float x1, float y1, float x2, float y2)
{
return ((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
}
// and in the Draw();
_spriteBatch.DrawString(font, "Score: " + _distance, new Vector2(100, 100), Color.White);
// in the Update();
_distance = GetDistance(_boxA.X, _boxA.Y, _boxB.X, _boxB.Y);
```

I dont know if this is 100% right. pls confirm.