Made board metrics part of state object; removed all dirty calls to q/width and q/height.