Simple Game Engine with SDL in C++