public DistributionSquare(int minY,int maxY,float chance){
  super(DistributionHelpers.getSquareDistribution(Math.max(minY,0),Math.min(maxY,255),chance));
  this.bestHeight=(minY + maxY) / 2;
}

public DistributionSquare ( int minY , int maxY , float chance ) { super ( DistributionHelpers . getSquareDistribution ( Math . max ( minY , 0 ) , Math . min ( maxY , 255 ) , chance ) ) ; this . bestHeight = ( minY + maxY ) / 2 ; }
creates pure square distribution
