Why do you copy the same logic and don't call stop_pomodoro in the foreach loop?