created the control class with the ball and chain modes of control