Phrase: Sam pulled up a chair to the piano, but it was broken, so he had to sing instead.

Question: What does "it" in "it was broken" refer to in the phrase?
Option A: The chair; Option B: The piano