Fixed so that the draw order works

It might slow down tha game and it needs that all items have a depth in
order to work properly. but it does work.