The prounoun "that" is used as a demonstrative pronoun in your sentence because it is used to demonstrate, or indicate something. In your sentence, that indicates which horse is your favorite.
B. the shack has only own window and is very dark when the lights are