Picky alert: This bothers me, but not for the obvious reason of me being a curmudgeon (I am). In a previous life I used to be a mainframe computer programmer, back in the days when nobody wrote a program without first drawing a flow chart.
The flow chart here is missing an arrow. It should be a recursive algorithm. There should be an arrow from “change something” back to “are you happy. There’s no guarantee that the first thing you change will make you happy.