adding undo for all directions part 1