Who became king at the end of the play?