fixing linkedlists bug

linked lists was ruuning with while, needed for loop, to jup by 2 every
time