three of a kind ranking is working now, will need to do DRY up the code though