add chess logic