ruins of the medieval castle