fixed some issues with changing the board size