better updateBoard