Basic Project Question

Your code does exactly as it i expected to do.

Delay(xxx) is a "blocking" function.

It will delay ALL execution for XXX ms. Nothing will happen for xxx ms.

Look at the "blink without delay" sample in the playground. It will do what you want.