Extract out drawDotsFromArray method