added cube scoring.