deletes node if X is the first thing clicked