finished writing method to return players rank