Solved some bugs on checkBubbleChain

Almost finished checkBubbleChain.