Find firestar in the areas in order, leaders den, shore of brambleclan border, and the empty area to the right of the leaders den, then you escape nightmare :)
sorry for month-late reply haha, but thank you so much!