Code modification

main.js
register event handler
BM.js
implementing plantBomb
BMM.js
implementing plantBomb
fix bug about setController() sucks if network is poor