updated StatePattern. added 'count on time' for a light