Store board state in url to allow the user to undo moves