Refactor of select method in score.cpp