basic game loop and sample sdl