renamed var to be UseZOrderByY; fixed removeChild

condensed getZOrderFromY function