[Bugfix] dynamic declaration of board & board length IN main