Renamed getRandomModeMatches() to getFreeRandomModeMatches(), updated functionality