Redirecting to Medieval territorial expansion in Morocco