update cpp framework, add baselayer, corelayer, and modify gamelayer, masklayer(still has some issues to resolve)