Not gonna lie I'm so lost and so confused

I'mma need some guidance real quick, try to keep it spoiler free though! Just need a pointer on what I'm supposed to be doing. Because I'm still on my first playthrough.

So it's 2 days left

So I left Humphreys gut. Finished the hangman and unlocked black space (I didn't finish the hangman part but I got the required keys).

Then I entered the black space, went through some doors and went through a red door. Killed Basil and sat on a throne.

Okay... Then I woke up and I'm on one day left. What just happened? Was that whole segment important or... Do I just keep playing through the day? Is there anything to do in headspace?