I think you can simplify this function to just `:rolledback == @states[counter]`