update code for Chess