initial copy of chessx (rev: 1539)