Factored out pairing system.

- still need to factor out scoring system.