Well, in every failure there is another success hanging around the corner. This is a fact considering the stories that many successful people have told. It is most difficult to see the bright side of life at challenging moments like that but we could get it right with practice. When we concentrate on what we know (That in every failure there is another success lurking around the corner; that 'this too shall pass'; that when there is a will there is a way; that when there is life there is hope) instead of dwelling on what we feel(that we have bungled it up and so we are failures; that we are wrecks; that life has fallen apart; that opportunity comes but once)-it will drive us to commit our time and minds on efforts that put us on a path of success.
God who made us knows it all and this is a great assurance. When things are moving right, we ought to give him thanks. When things are not moving our way, we still have to thank Him asking him to direct us. These words by Overton summarizes it.
My cherished plans may go astray,
My hopes may fade away;
But still trust my Lord to lead.
For He doth know the way.
God knows the game better than any of us.