implementing z-index

I added a z-index sorting mechanics to the ObjectHandler