how to stop losing in the stock market