Here's why:
* Subject: Grandma
* Verb: bought
* Indirect Object: Whitney (who receives the puzzle)
* Direct Object: a puzzle with over 1000 pieces (the thing that was bought)
The direct object is the thing that is acted upon by the verb. In this case, Grandma bought the puzzle.