changed Cursor to implement IEnumerator instead of IEnumerable.