updateBoard() coded
test coded for updateBoard()