Original: In the end, Bonnie recognizes Woody, who is lying at the bottom of the box, to Andy's surprise.
Simplified: In the end, Bonnie recognizes Woody, laying at the bottom of the box, to Andy's surprise.