making two lines for the selection to calculate the angle between and to
ratate the whole selection + removed some commented stuff in rect1