made minimum length to win configurable