adjusted pixel_gen to create patterns based on the states of switches 6 and 7, A functionality complete