added preliminary matchmaking algorithm