Adding mapping logic for score, phase and rules