def move_piece(self, start_index, end_index):
    '\n        Move an existing game piece from point A to point B.\n        '
    self.owner[end_index] = self.owner[start_index]
    self.owner[start_index] = None
    self.piece_class[end_index] = self.piece_class[start_index]
    self.piece_class[start_index] = None
    if ((self.owner[end_index] == Player.WHITE) and is_black_home_row(end_index)):
        self.piece_class[end_index] = PieceClass.KING
    if ((self.owner[end_index] == Player.BLACK) and is_white_home_row(end_index)):
        self.piece_class[end_index] = PieceClass.KING
Move an existing game piece from point A to point B.
def move_piece(self, start_index, end_index):
    '\n        \n        '
    self.owner[end_index] = self.owner[start_index]
    self.owner[start_index] = None
    self.piece_class[end_index] = self.piece_class[start_index]
    self.piece_class[start_index] = None
    if ((self.owner[end_index] == Player.WHITE) and is_black_home_row(end_index)):
        self.piece_class[end_index] = PieceClass.KING
    if ((self.owner[end_index] == Player.BLACK) and is_white_home_row(end_index)):
        self.piece_class[end_index] = PieceClass.KING