improve hit detect algorithm, & add score count