Angela, you're probably good to stop the "eat good one day and eat bad the next" idea. A popular and successful diet promoted a 80/20 which was eat good 80 percent of the time and allow for 10 percent not so good foods. And yet another strategy is to eat well six days a week and then let yourself relax for one day a week.
Whatever works for you is good.
But for me what has worked so far is to take the focus off of losing weight. It's all about feeling good and nourishing my body so it can function at its best. Of course because I still live with others for whom I need to prepare foods that tempt me like crazy, I still eat not-so-healthy foods. BUT...I do tend to eat MORE healthful foods because I am concerned about my overall health--brain health, especially, but also keeping my other organs healthy. So I read about which foods support brain, kidney, pancreas, liver health, etc. and be sure to include them in my menus.
It's critical to enjoy the process, too. Enjoy what you're eating. Otherwise, you'll just endure the good day and look forward to the bad day of eating which sets you up for failure. Your brain will do all it can to give you good feelings even if that means gorging on bad foods. So connect good feelings with good and yummy foods; bad feelings with eating poorly and I don't mean guilt afterward! I mean eating bad foods taste heavy, greasy and leave you feeling icky.
Keep going! And pat yourself on the back for your efforts Don't "struggle"--thrive! Focus on one meal at a time. If you eat not-so-great foods, remember that there's another meal around the corner that will nourish you better.
It also helps to keep accountable so I'd recommend starting your own food diary thread in these forums and let others keep you motivated!