add logging of moves