Sentence:  Provided that old Gilligan had not more horse sense than yourself and got the <WSD>foreway</WSD> of you," says I, [...] 
Meaning of the word marked with <WSD> tags:  An advantage; foredeal.