rosie's changes for flashing and she fixed the end light not turning on/off