Fixed solenoid code
Added control for 8 solenoids (controlled by buttons)