[Entity] Fix issue with disappearing trees.

Finally implemented a correct erase-update-draw cycle using two loops instead of one (which could erase stacked entities incorrectly).