tank battle copy from http://www.cnblogs.com/simple-blog/p/4123742.html