Make a variable, call it isUnder.
When you place that object under another set the variable to 1.
That way you can use the variable to keep from picking that object.
object variable "isUnder"=0
-on object clicked, do fo
If the variable condition is not met, its not picked.