added a simple game engine code to c++ codes