Corvin Castle, a Palace and a Prison