Added undoWork function and gave it the undo count

Made a new function to handle the multiple undo function calls; up to 5
can be made, unless there is nothing in the counter, just need to figure
out how to master actually getting the data and reading it into the undo
array from the stringsplit array