Conversion from SDL2 to Qt5 (WARNING: WORKS BUT STILL W.I.P)