I think the words might be 'NOSTALGIC'.
The word for this expression is nostalgic
1 5 1
loneliness means sad because of having no friends or company while nostalgic is longing for a happier or better time in the past
nw does it make sense???
longing for happier nd better time in past means that the person is presently not in a good condition and this word is used specifically when the has no frndsĀ 
i gave soo long explanation now understand on ur own!!