Changed loadBoard to writeBoard, added comments