the board is resized according to the size of the window