Implement the moveThroughHistory method