updateBoard Method