factor out and explain the method that will find the next room list element