Any help

Banana

So I’ve been trying to loose weight the past month and I’ve been eating pretty good and doing workouts but I just have moments when I eat and I don’t know why. I’m not hungry but I just have a sudden urge to eat. Does anyone know ways I can be more motivated and stay in track?