ottomans built a castle on the ground elevation as well as a mosque