'Their' is a possessive determiner showing ownership - the marbles belong to the boys. 'There' refers to place or position, 'they're' is a contraction of 'they are,' and 'thair' is a misspelling. Context indicates possession (the marbles belong to the boys), so 'their' is correct.