corridor as linkedlist implementation