some fixes for rectangles with the same boudnary value
works okay; needs work when an overlap leads to a selection being moved in a direction other than where the mouse is. also resizing