Andrew Thomas was Merthyr's matchwinner