Pomodoro implementation in swift