Two loops possible?

... and why are there delay()s in there ?
Read up on millis() timing and non-blocking methods.