edited _sortByZindex
made bigbigbig refactoring