working on final score logic