Improved Sanity Check

Every time the board is swept to determine moves the pieces are counted
also. After the count the sanity check is done to make sure the number
equals 12 for both players.