Kasbah of the Udayas, Rabat