Got SDL2 working, need to convert code