undo working - no animation

implemented undo function
it has no movement animation for now