PathNode - added function to get the boardState out of the node