"If" statement and LEDs not working correctly

FYI

.