end rampages after the given number of steps