doom in c++