Created DirectionConrol class which is implemented by switch class.
Changed Switch class to update configuration on touch and drag