code: public boolean patternOverflow()
      {
          BitArray lin = new BitArray(width);
          bits.forEach((i)->lin.set(column(i), true));
          return lin.isSet(0) && lin.isSet(width-1);
      }
docs: Returns true if pattern overflows line
  @return