added resizing board functionality