added boardData loading function, and moved this and the legend loading code to their own functions. LoadBoardConfig calls both of these.