"If" statement and LEDs not working correctly

(deleted)