Bugfixes for board representation.