I've updated the code and the current one is compiling right, sorry but didn't have much sleep. The problem still exist actually as I want it when it when one pair get matched once, it can't get matched again so for the current one, it should give only score 2 (ze and ez gets matched once each) and not 4 where it match each pair twice.