added undo funtionality and tests for this accordingly

"b indicate a node marked by player a", so what marks a node owned by b?