@Override
    protected int getDistanceToTarget(Rectangle rectangle, Point targetPoint) {
      return targetPoint.x - (int)rectangle.getMaxX();
    }
@Override
    protected int getDistanceToTarget(Rectangle rectangle, Point targetPoint)