Game engine in C++ using SDL