Problem with deleting a node in doubly-linked list. Help me plz)

[color=Purple]Hey :P Sorry for this silly questions, but I'm only beginner I've written a program which suppose to work, but it doesn't Anyway. It should create doubly-linked list. And it should compress it.It should leave only one element from few identical ones.