Local beats grandmaster to win national chess tournament