fixed a bug with matches occuring at the same position. we now only take the highest scored match