Changed moveHistory to a table