performance optimization in BoardParser (still having unsolved bug)