Debugging of code

Undo can now work properly when user input a mixture of able to delete
number and non-able to delete number for multiple delete