yellow and red lights working, no green
removing duplicate code
added green led functionality