refactored board-size