"Fix this spaghetti code by turning this complicated mess of conditionals into a finite state machine."
So far, no luck!