Read board size from the console and calculate pawn number based on it