Wow thanks yea that will work. I hope I understand it. I will try later.
This could also fix another problem I guess. Because I need to make it so that I can delete objects with a click as well. Currently when for example the grass is underneath a stone the grass also is deleted. But I think this way I can prevent it from happening.