I'd be more than willing to help, if helping didn't mean creating it for you..
I gave a very badly made example and all you did was add one event that didn't work as expected..
I was hoping to see your code and give some advice as to how to get closer to your objective..
So what you'd like to do is when sprite is overlapping another sprite, check if the sprite would fit.
All you would have to do is create conditions on drag and drop drop, to check these..
A rotated triangle won't fit inside a non-rotated square, etcetera..