If the AI_DELAY is 0 the program doesn't sleep for 0 second any more.