added logic to store moves and timestamps