Please help me fix the program

Please help me fix the program. My single lined list works fine but doubly linked list cannot output 6 and the removal does not work properly.