basic algorithm for generating pairs of players done