sdl event loop working now.