See this sentence.
'Tug of war is a sport that directly pits two teams against each other in a test of strength.'
As I look up at dictionary, pit means a big hole generally.
But how this 'pit' works in this sentence?
Click here and scroll down to the page to the definition of "to pit" as a verb. You have only looked at "pit" as a noun.
Remember - if you don't use correct capitalisation, punctuation and spacing, anything you write will be incorrect.