add angular timeout and interval directions, initial pivot, and working array logic