Provide a new parameter in chooseBoard, so if there is more than one board, the function will not be blocked.