def apply(self, board):
    opponent_square = self.find_opponent_square(board)
    new_board = board.clone()
    new_board.move_piece(self.start_index, self.end_index)
    new_board.remove_piece(opponent_square)
    return new_board
def apply(self, board):
    opponent_square = self.find_opponent_square(board)
    new_board = board.clone()
    new_board.move_piece(self.start_index, self.end_index)
    new_board.remove_piece(opponent_square)
    return new_board