SDL controller for initializing sdl, closing sdl and polling event