using chess code in tests