added chess codes