Fixed the concurrent modification problem with the gamepad linked list