Add new field undo_steps_number to Points

Use undo_steps_number to save number of steps user wants to cancel.