Despair is a disease of the soul. It is very dangerous because stops our walk for life.
We repeat in our thoughts each morning: "Happiness is a choice and I choose to be happy". As well you say, need to surround yourself a positive environment and people optimistic. And redirect the heading to follow according to its feasibility.
I hope you have a happy day!