Optimizing the levels with VisAreas and portals