Original: The third act becomes a play within a play, in which the characters in the puppet play are portrayed by humans.
Simplified: The third act is the puppet play.