How to stay motivated when things don't go your way