Moved render logic from editor to renderLevel module