mp[xx][yy] = mp[x][y]; mp[x][y].color = 0; mp[x][y].type = ""; if(checkcheck() && !isend){ cout << "yes;"; } else{ cout << "no;"; } if(isend){ cout << "yes" << '\n'; } else{ cout << "no" << '\n'; }