Rearranged some loading for z-order. Implemented EdM AI
Update to EdM AI