Converting BMSJava to C++ (2nd progress) UNFINISHED

T_T