rendered paste bodyif(this->getPiece(selection->x, selection->y)->getSide() != this->getPiece(target_x, target_y)->getSide() || this->getPiece(target_x, target_y)->getType() == EMPTY) { this->findPiece(WHITE_BISHOP, whiteBishop); cout << "After confirming location and side: " << this->getPiece(whiteBishop->x, whiteBishop->y)->getSide() << endl; if(!this->isChecked(selection, target_x, target_y)) { this->findPiece(WHITE_BISHOP, whiteBishop); cout << "After isChecked(false): " << this->getPiece(whiteBishop->x, whiteBishop->y)->getSide() << endl; *rockade = false; return true; } this->findPiece(WHITE_BISHOP, whiteBishop); cout << "After isChecked(true): " << this->getPiece(whiteBishop->x, whiteBishop->y)->getSide() << endl;}