Fixed weird deleting

Deletes one object at a time and if there are overlaps erases the tops
most object. This applies to objects of the same type too.