Be mindful of your energy levels throughout the day and make conscious decisions to eat whole foods when feeling tired or unfocused.  Overtime, you will re-train your body to use nutrient dense foods for energy instead of sugar and caffeine.