Override Delay function

You can't have a switch override the delay() function. You have to re-write your sketch so that it doesn't use delay().