Fixed bug in which it generates ambiguous boards.