This is the key phrase to failure- "if only". Every time we fail, we utter "if only". If only this had not happened! if only I had done differently. If only he helped me. If only....if only and so on. We are in habit of putting too much mental concentration on "if ....". This if thinking attitude drains out our energy even before starting.
To succeed, we need to become "How thinker" instead of being "if thinker". A "how thinker" will emphasizes the hows: 'How to overcome this problem?' or 'How to compensate for this shortcoming?' or 'How do I accomplish it?' This "How Thinking" attitude fills him with energy and helps him in overcoming most of obstacles. Just replace this "if thinking" with "how thinking" and see results for yourself. Next time you fail, instead of using "if .." try using "how.."! Good luck.