added option to control playmode via shift register input of a switch