added settings and changed to cs class BoardCtrl