Overcome Delay problem

by mistake i forgot to add resisitor in series with leds.. also gnd to other two switch. Practically it has not done.. Only code error pls

Thanks for error finding.