Added exception for the board constructor.