refactor pairing task logic

generally Rubyist would be using a .each or .map with the needed slice to avoid doing the user[index] below.