Brooklyn high school chess team headed to national championships