Homework 5 submission

Also, you need to check isDel. Even if the keys match, you can't stop if isDel is set to true.