Added masks for setting and clearing bits on the board