Implemented getBestMatchingCell