Added function to get the labels from board