public void setNewPercentage(int newPercentage)
    {
        if (newPercentage < 0 || newPercentage > 100) {
            throw new IllegalArgumentException("percentage value must be between 0 and 100 inclusively");
        }
        
        for (int i = 1; i <= newPercentage; i++) {
            for (Coordinate c : Range.rangeProgressions[i]) {
                this.rangeSelections[c.x][c.y] = true;
            }
        }
        
        for (int i = newPercentage + 1; i < Range.rangeProgressions.length; i++) {
            for (Coordinate c : Range.rangeProgressions[i]) {
                this.rangeSelections[c.x][c.y] = false;
            }
        }
        
        this.percentage = newPercentage;
    }