improved undo method

update the custom game window properly
removed unnecessary files