Updating the data structure for board