Handling variable BoardSize.