add read nodes from file function for player 1