Give TuringMashine::eraseState() a zero-based parameter.