recalculate sum when inverting scores

Sum should be recalculated after inverting scores as sum is not the same anymore. Application crashes when adding new scores until it reaches _level_ (which is between 0 and sum, where sum is greater then actual sum), because of "IndexOutOfBoundsException".