making totalBoardSize react to Window.dimensions