Optimize code on removing 10% cells

Use HTML replace instead of dom
Modify the style in battle tab