Add check and updates game tree

Deleted NewGameTab, as it was no longer used and added a few lines to update the game tree