Matching game functionality done.
Simplified partitioning step.