Reduce getTotalScore

and add tests if equals to -1