Changed the drawablehandler to use more sophisticated handler functions, which surprisingly fixed the previous problem with the game freezing. Now however, the depth sorting doesn't seem to work very well at all. Next I will have to fix that and make other handler classes use better methods as well.