making the board size change based on the current window height