Storing move history