update the board