I have been learning SDL by following a tutorial on lazyfoo.net. The code I wrote has almost exactly been copied from one of their tutorial, just changed some things because