Pin A's bubble can only be shown by clicking twice, after deleting Pin B
when Pin B's bubble is still open. Fixed that issue
1. Refactor the code for filling in the text in bubble.
2. Add a lot of comments.
3. Tried to fix a bug, but failed. Move that goal to MS3.
Removed some empty lines.