refactor logic for proximity of guess (movies)