That is a surprisingly simple solution, but can it be done with one switch? If you used one switch, it would need to connect six inputs to +5v and ground all at once. It would require 8 wires.