Integrated rs from main.cpp to scoring_function
Rewrote the static constants in scoring_function