C++ and SDL code for game