title: Issue with removing a node
body: <p>I'm working on a link list and not currently able to remove a speficic node by a key value. I ask a helper at my school and he is not sure why it isn't working.(There is also a lot of try-catches for another issue I apologize for how gross it looks)</p>
  
  <p>Here is my remove method:</p>
  
  <pre><code>public void remove(int key) throws Exception {
          Node tmp = first;
          Node pred = first;
  
          while (tmp != null) {
              if (tmp.keyValue == key) {
                  pred = tmp;
                  tmp = tmp.next;
  
              } else {
                  tmp = tmp.next;
              }
  
          }
  </code></pre>
  
  <p>Here is my main method creaing the list and trying to remove it and print it:</p>
  
  <pre><code>OrderedLinkedList oLL3 = new OrderedLinkedList();
          try {
              oLL3.insert("Should be removed", 5);
              oLL3.insert("Shouldn't be removed 2nd", 15);
              oLL3.insert("Shouldn't be removed", 10);
          } catch (Exception e) {
              System.out.println("Error: Two nodes with the same key value and the newest one won't be stored.");
          }
          try {
              oLL3.remove(5);
          } catch (Exception r) {
              System.out.println("Error:No nod with the key value to be removed");
          }
          System.out.print("toString test removing node: \n" + oLL3.toString());
  
          System.out.println("Number of nodes in the List:" + oLL3.listCount());
  
  
          }
  </code></pre>