added code to get the board layout