Changed how the board width is calculated