refactored score settling method and fixed a bug in hit method