Context Word: mood. 
Question: PersonX was in a bad mood all day while PersonY was very happy. _ slept terribly the night before. 
Answer: PersonX
PersonX was in a bad mood all day while PersonY was very happy. _ slept wonderfully the night before.