deleted duplicated updateBoard()