Linkedlist in getMoves