replaced most of the case statement in seven_seg_controller with an indexed assign