numberOfPairsOfCards refactored.


Signed-off-by: Leonardo Ono <ono.leo@gmail.com>