modify the chess demo