fixed compilation error, need to fix more after game element constructor is fixed