A Novel Approach to Solving Goal-Achieving Problems for Board Games