noted that boardToBits is wrong