It's important to have the right game plan when it comes to the stock market.