Pirates beat Barraba-Gwydir 43-21 to claim minor premiership