alpha-beta search and undo