         flushWinCount += 1
       }
       
-      if checkInARow(slotRow) {
+      if checkInARow(slotRow) == true {
         println("\(slotRow.count) in a row")
         winnings += 1
         straightWinCount += 1
+      }
+      
+      if ofAKind(slotRow) == true {
+        println("\(slotRow.count) of a kind")
+        winnings += 3
+        threeOfAKindWinCount += 1
       }
     }
     

    if straightWinCount == slots.count {
      println("Epic straight")
      winnings += 1000
    }
    
    return winnings

    }
    return true
  }
  
  class func ofAKind(slotRow: [Slot]) -> Bool {
    let firstValue = slotRow[0].value
    for slot in slotRow {
      if firstValue != slot.value {
        return false
      }
    }
    return true
  }
}