Use linked list in input system