Move SGF-related functions from BoardWindow to Tree