refactoring so that getMoveScoreRank can be used elsewhere