Replace Sleep() calls with SDL_Delay()