Know that you can eat whatever foods you want and lose weight.
You could eat low nutritional value food, McDonalds, Sweets, Ice cream and still lose weight!
You could also eat super nutrient dense food; olive oil, vegetables, lean meats etc and put on weight.
The underlying factor is calories.
If you are in a calorie deficit you will lose weight, whatever you eat!
A good idea would be to make sure that whilst you are in a calorie deficit you are eating nutrient dense food for the majority. To make sure your body gets what it needs.
Fun foods should be a small part of your diet, because what is life without, ice cream, chocolate, burgers, chips.