added board resizing functionality