Cunning way to ensure unique solutions in generated Rectangles