port game to sdl2