Modified loadConfig function in Board class