added min,max given score, next best word functions