chess and mathematics