fixes to dynamically-sized C++ board