Save old states in a history array