finish scoring logig