Attempt at creating a rudimentary game engine using SDL